﻿/***
操作WapOrders订单表
***/

//保存订单信息到微信订单表
function SaveWapOrders(content, callback) {
    $$.ajax({
        url: ISS_Constants.Url.const_weixin_waporders_save+"&_timestamp="+ISS.utils.dateToStr("yyyyMMddHHmmss", new Date()),
        data: { "conditionParm": content },
        crossDomain: true,
        method: "POST",
        success: function (data, status) {
            data = JSON.parse(data);
            if (data && data.success == true && data.msg == "提交成功") {
                if (callback) {
                    callback();
                }
            }
            else {
                myApp.hidePreloader();
                myApp.alert('提交订单失败!');
            }
        },
        error: function (xhr, status) {
             myApp.hidePreloader();
             myApp.alert('提交订单失败!');
        }
    });
}